package com.ruoyi.fs.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsCaseProgressCourtMapper;
import com.ruoyi.fs.domain.FsCaseProgressCourt;
import com.ruoyi.fs.service.IFsCaseProgressCourtService;

/**
 * 案件进展开庭Service业务层处理
 * 
 * @author hero
 * @date 2024-11-27
 */
@Service
public class FsCaseProgressCourtServiceImpl implements IFsCaseProgressCourtService 
{
    @Autowired
    private FsCaseProgressCourtMapper fsCaseProgressCourtMapper;

    /**
     * 查询案件进展开庭
     * 
     * @param id 案件进展开庭主键
     * @return 案件进展开庭
     */
    @Override
    public FsCaseProgressCourt selectFsCaseProgressCourtById(Long id)
    {
        return fsCaseProgressCourtMapper.selectFsCaseProgressCourtById(id);
    }

    /**
     * 查询案件进展开庭列表
     * 
     * @param fsCaseProgressCourt 案件进展开庭
     * @return 案件进展开庭
     */
    @Override
    public List<FsCaseProgressCourt> selectFsCaseProgressCourtList(FsCaseProgressCourt fsCaseProgressCourt)
    {
        return fsCaseProgressCourtMapper.selectFsCaseProgressCourtList(fsCaseProgressCourt);
    }

    /**
     * 新增案件进展开庭
     * 
     * @param fsCaseProgressCourt 案件进展开庭
     * @return 结果
     */
    @Override
    public int insertFsCaseProgressCourt(FsCaseProgressCourt fsCaseProgressCourt)
    {
        fsCaseProgressCourt.setCreateTime(DateUtils.getNowDate());
        return fsCaseProgressCourtMapper.insertFsCaseProgressCourt(fsCaseProgressCourt);
    }

    /**
     * 修改案件进展开庭
     * 
     * @param fsCaseProgressCourt 案件进展开庭
     * @return 结果
     */
    @Override
    public int updateFsCaseProgressCourt(FsCaseProgressCourt fsCaseProgressCourt)
    {
        fsCaseProgressCourt.setUpdateTime(DateUtils.getNowDate());
        return fsCaseProgressCourtMapper.updateFsCaseProgressCourt(fsCaseProgressCourt);
    }

    /**
     * 批量删除案件进展开庭
     * 
     * @param ids 需要删除的案件进展开庭主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseProgressCourtByIds(Long[] ids)
    {
        return fsCaseProgressCourtMapper.deleteFsCaseProgressCourtByIds(ids);
    }

    /**
     * 删除案件进展开庭信息
     * 
     * @param id 案件进展开庭主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseProgressCourtById(Long id)
    {
        return fsCaseProgressCourtMapper.deleteFsCaseProgressCourtById(id);
    }
}
